﻿using System;
using System.Collections.Generic;
using System.Text;
using DrawingScreen.Constant;

namespace DrawingScreen.Messages
{
    public class CDrawingMessage_Action : CDrawingMessage
    {
        public int Action;
        public double X;
        public double Y;

        public override void ReadMessage(libReadWrite.BigEndianReader sr)
        {
            this.Action = (int) sr.ReadByte();
            this.X = sr.ReadDouble();
            this.Y = sr.ReadDouble();
        }

        public override void WriteMessage(libReadWrite.BigEndianWriter sw)
        {
            throw new NotImplementedException();
        }

        public override libCommonClass.TTMessage Clone()
        {
            return new CDrawingMessage_Action();
        }

        public override int GetMessageID()
        {
            return CDrawingMessageKind.ACTION;
        }

        public override string GetMessageName()
        {
            return "CDrawingMessage_Action";
        }
    }
}
